<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title> out对象应用实例 </title>
</head>
<body>
<%
out.println("out对象应用实例：<br><hr>");
out.println("<br>输出布尔型数据:");
out.println(true);
out.println("<br>输出字符型数据:");
out.println('l');
out.println("<br>输出字符数组数据:");
out.println(new char[]{'l','z','c'});
out.println("<br>输出双精度数据:");
out.println(5.66d);
out.println("<br>输出单精度数据:");
out.println(36.8f);
out.println("<br>输出整型数据:");
out.println(8);
out.println("<br>输出长整型数据:");
out.println(123456789123456L);
out.println("<br>输出对象:");
out.println(new java.util.Date());
out.println("<br>输出字符串:");
out.println("liuzc@hnrpc");
out.println("<br>输出新行:");
out.newLine();
out.println("<br>缓冲区大小:");
out.println(out.getBufferSize());
out.println("<br>缓冲区剩余大小:");
out.println(out.getRemaining());
out.println("<br>是否自动刷新:");
out.println(out.isAutoFlush());
out.flush();
out.println("<br>调用out.flush()");
out.close();
out.println(5.66d);
%>
</body>
</html>

